// mod global css in SCSS form
@import './quasar.variables.scss';

//禁止文字选中,只有input, textarea
*{
  -webkit-touch-callout:none; /*系统默认菜单被禁用*/
  -webkit-user-select:none; /*webkit浏览器*/
  -khtml-user-select:none; /*早期浏览器*/
  -moz-user-select:none;/*火狐*/
  -ms-user-select:none; /*IE10*/
  user-select:none;

  overflow: hidden;  // 超出的文本隐藏
  text-overflow: ellipsis; // 溢出用省略号显示
}

input{
  -webkit-user-select:auto; /*webkit浏览器*/
}

textarea{
  -webkit-user-select:auto; /*webkit浏览器*/
}

//滚动条整体
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background-color: #f3f3f3;
}

//滚动条轨道
::-webkit-scrollbar-track {
  background-color: #f3f3f3;
}

//滚动条滑块
::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: #78c7d5;
}

//scroll area
.q-scrollarea__thumb,-webkit-scrollbar-thumb{
  border-radius: 9px;
  opacity: .4;
  background-color: $primary;
}

html, body {  //或选择组合器
  margin: 0px;
  padding: 0px;
  background: $base;
  background-size: cover;
  color: $dark;
  font-family: 'Roboto', '-apple-system', 'Helvetica Neue', 'Microsoft YaHei', Helvetica, Arial, sans-serif;
}

//文本标题
h1,h2,h3,h4,h5,h6 { //或选择组合器
  margin: 0;
}

//a 标签选择器
a {
  color: $primary;
}

.q-field--auto-height.q-field--labeled { //与选择器
  .q-field__control-container {
    padding-top: 8px;
  }
}

.q-item__section--side {
  padding-right: 0;
  margin-right: 0;
}

.q-field--auto-height.q-field--dense {
  .q-field__control, .q-field__native {
    min-height: 30px;
    margin-top: 0px;
  }
}


//q-input 高度
.q-field {
  &--dense{
    .q-field__control, .q-field__marginal{
      height: 34px !important;
      padding-left: 5px;
      margin-top: 0px;
    }
  }
}

.q-tab__label {
  font-size: 14px;
}

.q-btn__wrapper {
  padding: 0px 14px 0px 14px;
  min-height: 32px;

  .q-btn__content {
    .on-left {
      margin-right: 2px;
    }
  }
}

.q_b_tabs {
  border-bottom: 1px $light solid;

  .q-tab--active {
    color: $primary;
  }
}

.q-table{
  thead {
    th,td{
      position: sticky;
      top: 0;
      font-size: 14px;
      font-weight: bold;
      transition: none;
      opacity: 1;
      z-index: 1;
      color: $t-dark;
    }
    tr{
      background: #eef3f8;
      th{
        padding: 0px 8px !important;
        position: sticky;
        top: 0;
        z-index: 1;
      }
    }
  }
  tbody{
    //tr:nth-child(even) {
    //  background: #f7feff;
    //}
    td{
      max-width: 180px;
      font-size: 14px;
      padding: 0px 16px !important;

      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      text-align: left
    }
  }
}

.my-cross-table{
  border-radius: 0 !important;
  border: 1px $light solid;
}

.my_page_container{
  padding: 5px;


}

.my-dialog-form {
  .my-form-header {
    background-color: #e3dede;
    font-size: 18px;
  }
  .my-form-footer {
    text-align: right;
    padding: 5px;
    background-color: #cecaca;
  }
}

.my-form-table {
  .my-row-height {
    line-height: 60px;
  }
  .my-label {
    text-align: right;
    width: 120px;
  }

  .my-value {
    text-align: left;
    width: 220px;
  }
}

.my-text-overflow {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.my-scroll-area {
  max-width: 350px;
  height: 450px;
  overflow-y: auto;
  overflow-x: hidden;
}

.my-scroll-area-table {
  max-width: 1200px;
  height: 600px;
}

//动画
.my-visible {
  opacity: 0
}

.my-sparkle {
  animation: sparkle-color 1s infinite;
}

.my-scale {
  animation: zoom-range 2s infinite;
}

@keyframes sparkle-color {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  51% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes zoom-range {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}
